package com.xcity.game.currency;

import com.xcity.db.entity.Player;

public abstract class AbstractCurrency implements ICurrency {

	protected Player owner;
	protected CurrencyType type;
	protected short syncId;
	protected String valueAddLogFormat, valueDecLogFormat;
	
	public AbstractCurrency(CurrencyType type, short syncId, String valueAddLogFormat, String valueDecLogFormat) {
		this.type = type;
		this.syncId = syncId;
		this.valueAddLogFormat = valueAddLogFormat;
		this.valueDecLogFormat = valueDecLogFormat;
	}

	@Override
	public void init(Player player) {
		this.owner = player;
	}

	@Override
	public short getSyncId() {
		return syncId;
	}

	@Override
	public String getValueAddLogFormat() {
		return valueAddLogFormat;
	}

	@Override
	public String getValueDecLogFormat() {
		return valueDecLogFormat;
	}
	
}
